import axios, { Axios } from 'axios'
const context = '/deviceservice'

/**
 * 获取 FdsCleaningRuleset 分页列表
 */
export function getFdsCleaningRulesetPagination(data: any) {
  return axios.get(`${context}/fdsCleaningRuleset/pagination`, { params: data })
}

/**
 * 获取 FdsCleaningRuleset 所有数据
 */
export function getFdsCleaningRulesetAllList(data: any) {
  return axios.get(`${context}/fdsCleaningRuleset/allList`, { params: data })
}

/**
 * 获取 FdsCleaningRuleset 详情
 */
export function getFdsCleaningRulesetDetailById(id: any) {
  return axios.get(`${context}/fdsCleaningRuleset/${id}`, { params: { id } })
}

/**
 * 新增 FdsCleaningRuleset
 */
export function addFdsCleaningRuleset(data: any) {
  return axios.post(`${context}/fdsCleaningRuleset`, data)
}

/**
 * 修改 FdsCleaningRuleset
 */
export function updateFdsCleaningRuleset(data: any) {
  return axios.put(`${context}/fdsCleaningRuleset`, data)
}

/**
 * 删除 FdsCleaningRuleset
 */
export function batchRemoveFdsCleaningRuleset(data: any) {
  return axios.post(`${context}/fdsCleaningRuleset/batchRemove`, data)
}
